﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CommonComponent.Common;
using PermissionBase.Core.Service;
using PermissionBase.Core.Domain;
using DAL;

public partial class test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Staff s = CommonSrv.LoadObjectById(typeof(Staff), "040010") as Staff;
        User u = s.User as User;
        Trace.Write(u.Emp_name);
        
        /*Department dept = CommonSrv.LoadObjectById(typeof(Department), "000003") as Department;

        TextBox1.Text = dept.Users.Count.ToString();
        foreach (User user in dept.Users)
        {
            //Debug.WriteLine(user.Emp_name);
            Trace.Write("I trace sth here in this cs class.");
        }*/
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        this.TextBox2.Text = UUIDGenerator.GetUUID();
    }
    protected void Button3_Click(object sender, EventArgs e)
    {
        this.TextBox3.Text = EncryptUtil.Encrypt(this.TextBox3.Text, 1);
    }
}
